// src/router/modules/banner.ts
import Layout from '@/layout/index.vue'
import Add from '@/views/banner/add.vue'
import List from '@/views/banner/index.vue'
import BannerListHome from '@/views/banner/components/home.vue'
import BannerListKind from '@/views/banner/components/kind.vue'

export default {
  path: '/banner',
  component: Layout,
  redirect: '/banner/list',
  meta: {
    title: '轮播图管理',
    icon: 'PictureFilled'
  },
  children: [
    {
      path: '/banner/list',
      component: List,
      redirect: '/banner/list/home',
      meta: {
        title: '轮播图列表',
        icon: 'PictureFilled'
      },
      children: [
        {
          path: '/banner/list/home',
          component: BannerListHome,
          meta: {
            title: '首页轮播图列表',
            icon: 'PictureFilled'
          }
        },
        {
          path: '/banner/list/kind',
          component: BannerListKind,
          meta: {
            title: '分类轮播图列表',
            icon: 'PictureFilled'
          }
        }
      ]
    },
    {
      path: '/banner/add',
      component: Add,
      meta: {
        title: '添加轮播图',
        icon: 'PictureFilled'
      },
      hidden: true
    }
  ]
}